#include "Model.h"
#include"Controller.h"

Model::Model(void)
{
}


Model::~Model(void)
{
}

void Model::SetData(string data)
{
	this->m_Data = data;
}

string Model::GetData()
{
	return this->m_Data;
}

void Model::SetController(Controller *pController)
{
	this->m_pController = pController;
}

void Model::Register(Viewer *pViewer)
{
	m_pController->Register(this, pViewer);
}

void Model::UnRegister(Viewer *pViewer)
{
	m_pController->UnRegister(this, pViewer);
}

void Model::Notify()
{
	m_pController->Notify(this);
}

